 <!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>设置中心</title>
	<!-- {% load staticfiles %} -->
    <!-- <script src="{% static "js/jquery.js" %}"></script>
    <script src="{% static "js/proj-function.js" %}"></script>
    <script src="{% static "js/heard-mutilctrl.js" %}"></script>
    <script src="{% static "js/setting-mutilctrl.js" %}"></script> -->
    <script src="../../static/js/jquery.js"></script>
    <script src="../../static/js/proj-function.min.js"></script>
    <script src="../../static/js/heard-mutilctrl.min.js"></script>
    <script src="../../static/js/assign_device.js"></script>
    <script src="../../static/js/setting-mutilctrl.js"></script>

    <link rel="stylesheet" type="text/css" href="../../static/css/all-set.css">
</head>
<script type="text/javascript">	 
    setting_data = {{ device_obj|safe }};
</script>

<body>	
<div class="public">
	<div class="public_heard">
		<a id="link_to_device" href="#">设备监控</a>
		<!-- <a id="link_to_alarm" href='#'>报警查询</a> -->
		<a id="link_to_history" href='#'>历史数据</a>
		<a id="link_to_setting" href='#'>系统设置</a>
        <!-- <a id="link_to_user_setting" href="user_center.html">用户设置</a> -->
	</div>
</div>
<div class="public_body">
<div class="public_serach">
    <span>
        设备编号：<input class="input_static" type="text" id="input_device_id" style="width: 50px;"></input>
    	<button class="class_serach_button" id="button_serach_device_id" style="position:relative; left: 30px;" onclick="onSerachDevice()">查找设备</button> 
        <button class="class_serach_button" id="button_create_device_id" style="visibility: hidden;">创建设备</button>  
	</span>
    <div class="device_nodes">
    	<hr>
    	设备名称：<input class="input_static" id="input_device_name" value="未知设备">
        <hr>
        设备类型：<input class="input_static" id="input_device_type" value="未知类型">
        <hr>
        安装地址：<input class="input_static" id="input_device_address" value="未知地址">
        <hr>
        设备状态：<input class="input_static" readonly id="input_device_state" value="找不到设备">
        <!-- <select>
       		<option value="init" selected = "selected">init</option>
        	<option value="delete">delete</option>
        </select> -->
        <hr>
        <div class="area" style="height: auto;width: 100%; margin: auto; ">
        <div class="leftarea" style="float:left;">
            设备用户：
            <br>
            <input type="button" id="button_change_user" onclick="onChangeUser();" value=" 更 新 ">
        </div>
        <div class="rightarea" style="float: center;">
            <textarea  class="input_static"  cols="100" rows="2" readonly class="input_textarea" id="input_device_users" style="height: 40px;" >  
            </textarea>
            <!-- /index/get_user_list/?id=1 -->            
            <div class="input_static" id="sensor_setting_create_div" style="visibility: hidden;height: 0px;">

                <table class="mini_table" id="table_user_list" style="margin: 0 0 0 80px;">
                    <thead>
                        <th>用户编号</th>
                        <th>用户名</th>
                        <th>全选<input type="checkbox" id="table_user_list_select_all" onclick="onSelectAllCheckBox()"></th>
                    </thead>
                    <tr>
                        <td>0</td>
                        <td>名称</td>
                        <td><input type="checkbox" class="table_user_list_select"></td>
                    </tr>                  
                </table>
                
                <div class="bottom" style="margin: 0 0 0 80px;">
                <button id="button_user_list_save" onclick="onSetDeviceUsers()">保存</button>
                <button onclick="javascript:history.back(-1);" style="visibility: hidden;">取消</button>
                </div>           
            </div>
        </div>
        </div>
        <!-- <a href="#" id="button_change_user">更新</a>          -->
       
        <hr>
        <div class="area" style="height: auto;width: 100%; margin: auto; ">
        <div class="leftarea" style="float:left;">
        设备描述：
        </div>
        <div class="rightarea" style="float: center; border: 1px solid #5a5a9a; margin: 0 0 0 100px;padding: 5px 2px 5px 2px; width: 830px">
           
            采 样 率 : <input readonly id="input_argument_sample_rate" value="20000">
            <span style="margin: 0 0 0 10%">
            数据长度: <input id="input_argument_data_length" value="###">
            </span>
            <span style="float: right;">
            负延迟长度: <input id="input_argument_data_late" value="###">  
            </span>         
           <br><br>
            触发电平_x: <input id="input_argument_triglevel_x" value="###">
            <span style="margin: 0 0 0 7%">
            发电平_y: <input id="input_argument_triglevel_y" value="###">
            </span>
            <span style="float: right;">
            触发电平_z: <input id="input_argument_triglevel_z" value="###">
            </span>
        </div>
        </div>

  <!--       设备描述：<textarea  class="input_static"  cols="100" rows="2" class="input_textarea" id="input_device_description" >无
        </textarea> -->     

        <!-- /index/set_device_description/ -->
        <!-- <a href="#" id="button_change_description">更新</a> -->
        <hr>
        间隔时间：<input class="input_static" id="input_device_second" value="0"> 
        <!-- <select  class="input_static" >       
        	<option value="1"> 1 </option>
            <option value="2"> 2 </option>
            <option value="3"> 3 </option>
            <option value="4"> 4 </option>
            <option value="5" selected = "selected"> 5 </option>
        </select> -->
        秒        
        <hr>  
        <div class="area" style="height: auto;width: 100%; margin: auto; ">
        <div class="leftarea" style="float:left;">
        上下限值：
        </div>
        <div class="rightarea" style="float: center; margin: 0 0 0 100px;">
           <table class="mini_table" id="table_sensor_list" >
                <thead>
                    <th>类型</th>
                    <th>最小值</th>
                    <th>最大值</th>
                    <th>单位</th>
                </thead>
                <tr>
                    <td>""</td>
                    <td><input value="-10"></td>
                    <td><input value="20"></td>
                    <td><input value=""></td>
                </tr>              
            </table>     
        </div>
        </div>      
        <!-- 上下限值：      
        <textarea  class="input_static"  cols="100" rows="2" readonly class="input_textarea" id="input_device_range">{'null':[0,0,null]}</textarea>  --> 
       <!-- index/set_monitor_data/  -->
       <!-- <a href="#" id="button_change_sensor">更新</a> -->
        
  </div>
    <hr>
    <div class="bottom_function_area">
    	<span>
        	<!-- <button id="button_delete_device" >删除设备</button> -->
            <button id="button_save_change" onclick="onSaveSetting();">保存修改</button>
        </span>
    </div>
</div>
</div>

</body>
</html>